package com.dianping.cat.home.business.entity;

import com.dianping.cat.home.business.BaseEntity;
import com.dianping.cat.home.business.IVisitor;





public class BusinessItem
  extends BaseEntity<BusinessItem>
{
  private String m_domain;
  private String m_itemId;

/* 16 */   public void accept(IVisitor visitor) { visitor.visitBusinessItem(this); }



  public boolean equals(Object obj) {
/* 21 */     if (obj instanceof BusinessItem) {
/* 22 */       BusinessItem _o = (BusinessItem)obj;

/* 24 */       if (!equals(getDomain(), _o.getDomain())) {
/* 25 */         return false;
      }

/* 28 */       if (!equals(getItemId(), _o.getItemId())) {
/* 29 */         return false;
      }


/* 33 */       return true;
    }

/* 36 */     return false;
  }


/* 40 */   public String getDomain() { return this.m_domain; }



/* 44 */   public String getItemId() { return this.m_itemId; }



  public int hashCode() {
/* 49 */     int hash = 0;

/* 51 */     hash = hash * 31 + ((this.m_domain == null) ? 0 : this.m_domain.hashCode());
/* 52 */     return hash * 31 + ((this.m_itemId == null) ? 0 : this.m_itemId.hashCode());
  }




  public void mergeAttributes(BusinessItem other) {
/* 59 */     if (other.getDomain() != null) {
/* 60 */       this.m_domain = other.getDomain();
    }

/* 63 */     if (other.getItemId() != null) {
/* 64 */       this.m_itemId = other.getItemId();
    }
  }

  public BusinessItem setDomain(String domain) {
/* 69 */     this.m_domain = domain;
/* 70 */     return this;
  }

  public BusinessItem setItemId(String itemId) {
/* 74 */     this.m_itemId = itemId;
/* 75 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/business/entity/BusinessItem.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */